<template>
   <div style="width: 100%;height: calc(100vh - 120px)">
    <div id="animation" style="width: 100%;height: 98%;"></div>
   </div>
</template>

<script setup>
import { onMounted } from 'vue'
import homePageJson from '../../assets/json/homePage.json'
 onMounted(() => {
  setLottieFun() //设置登录页背景
})
function setLottieFun() {
  var animation = bodymovin.loadAnimation({
    container: document.getElementById('animation'),
    renderer: 'svg',
    loop: true,
    autoplay: true,
    animationData: homePageJson, //导入用法
  })
}
</script>

<style scoped lang="less">
  
</style>